{% extends 'bugs/base.html' %}
{% load staticfiles %}

{% block title %}Log in{% endblock %}
{% block extrastyle %}

{% endblock %}
{% block content %}
    <div class="container">
        <form class="form-signin" action="/login/" method="post">
            {% csrf_token %}

            <h2 class="form-signin-heading">请登录</h2>

            <div class="form-group">
                <label for="id_username">用户名：</label>
                <input type="text" name='username' class="form-control" id="id_username" placeholder="Username"
                       autofocus required>
            </div>
            <div class="form-group">
                <label for="id_password">密码：</label>
                <input type="password" name='password' class="form-control" id="id_password" placeholder="Password"
                       required>
            </div>
            <div class="checkbox">
                <label>
                    <input type="checkbox" value="remember-me"> Remember me
                </label>
            </div>
            {% if message %}
                <div class="alert alert-warning" style="color:red ">{{ message }}</div>
            {% endif %}
            <button class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>
        </form>

    </div> <!-- /container -->
{% endblock %}
